#include<stdio.h>
int main()
{
	int m=0,a=0,b=0;
	scanf("%d %d",&a,&b);
	m=(a>b)?a:b;
	int num=m;
	while(1)
	{
		if(num%a==0&&num%b==0)
		{
			break;
		}
		num+=m;
	}
	printf("%d",num);
	return 0;
}
